package com.jet.goods.service;

import com.jet.core.model.vo.PageVo;
import com.jet.goods.domain.dto.UnitDto;
import com.jet.goods.domain.entity.GoodsUnit;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jet.goods.domain.query.UnitQuery;
import com.jet.goods.domain.vo.UnitVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2025-03-04
 */
public interface IGoodsUnitService extends IService<GoodsUnit> {

    GoodsUnit create(long merchantNo, UnitDto dto);

    void edit(long merchantNo, String id, UnitDto dto);

    void delete(long merchantNo, String id);

    GoodsUnit findByName(long merchantNo, String name);

    List<UnitVo> findAllByIds(long merchantNo, List<String> ids);

    PageVo<UnitVo> page(long merchantNo, String name, UnitQuery query);

    List<UnitVo> findAll(long merchantNo);
}
